<?php 

//设置网站编码
header("content-type:text/html;charset=utf-8");

session_start();

//设置模式
define('APP_DEBUG',true);  //开发调试模式
// define('APP_DEBUG',false);  //上线模式

//给系统静态资源文件请求路径设置常量
define('SITE_URL','http://172.16.148.41/wysx/website/');
define('WEBSITE_URL','http://172.16.148.41/wysx/website/index.php/');


//Home前台
define('CSS_URL','/wysx/website/Home/Public/css/');
define('IMG_URL','/wysx/website/Home/Public/images/');
define('JS_URL','/wysx/website/Home/Public/js/');
define('XML_URL','/wysx/website/Public/Xml/');


//头像根目录
define('HEAD_IMG_URL','Public/Upload/User/head_img/');
//技能分享图片根目录
define('SKILL_IMG_URL','Public/Upload/Share/Skill/');
//公共图标目录
define('COMMON_ICON_URL','Public/Common/icon/');

//Admin后台
define('ADMIN_CSS_URL','/website/Admin/Public/css/');
define('ADMIN_IMG_URL','/website/Admin/Public/images/');
define('ADMIN_JS_URL','/website/Admin/Public/js/');


//允许跨域访问
// header('Access-Control-Allow-Origin:*');//允许跨域
header('content-type:application:json;charset=utf8');
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
 


//引入tp框架的接口文件
include ("../ThinkPHP/ThinkPHP.php");